﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KeePassLib;
using KeePass.UI;

namespace KeePass.Forms
{
    public partial class EditRightsForm : Form
    {
        private AlternativeUser alternativeUser;
        private PwDatabase db;

        public EditRightsForm(AlternativeUser alternativeUser, PwDatabase db, CustomTreeViewEx ctmMainForm)
        {
            InitializeComponent();
            this.alternativeUser = alternativeUser;
            this.db = db;
            //this.treeView.Nodes.AddRange(ctmMainForm.Nodes.);//[0].Clone());
            Copy(ctmMainForm, treeView);

        }
        
        private void Copy(TreeView treeview1, TreeView treeview2)
        {
            TreeNode newTn;
            foreach (TreeNode tn in treeview1.Nodes)
            {
                newTn = (TreeNode)tn.Clone();
                treeview2.Nodes.Add(newTn);
                 new ComboBox();
            }
        }

    
    } 
}
